package com.simple.common.utils;


/**
 * @description: 国家代码转换类
 * @author: Mr.Kang
 * @create: 2021-03-11 17:53
 **/
public class CountryCodeUtil {

    public static String TwoCode2ThreeCOde(String countryCode){
        String newCode = "";
        switch (countryCode){
            case "AF": newCode= "AFG"; break;
            case "AX": newCode= "ALA"; break;
            case "AL": newCode= "ALB"; break;
            case "DZ": newCode= "DZA"; break;
            case "AS": newCode= "ASM"; break;
            case "AD": newCode= "AND"; break;
            case "AO": newCode= "AGO"; break;
            case "AI": newCode= "AIA"; break;
            case "AQ": newCode= "ATA"; break;
            case "AG": newCode= "ATG"; break;
            case "AR": newCode= "ARG"; break;
            case "AM": newCode= "ARM"; break;
            case "AW": newCode= "ABW"; break;
            case "AU": newCode= "AUS"; break;
            case "AT": newCode= "AUT"; break;
            case "AZ": newCode= "AZE"; break;
            case "BS": newCode= "BHS"; break;
            case "BH": newCode= "BHR"; break;
            case "BD": newCode= "BGD"; break;
            case "BB": newCode= "BRB"; break;
            case "BY": newCode= "BLR"; break;
            case "BE": newCode= "BEL"; break;
            case "BZ": newCode= "BLZ"; break;
            case "BJ": newCode= "BEN"; break;
            case "BM": newCode= "BMU"; break;
            case "BT": newCode= "BTN"; break;
            case "BO": newCode= "BOL"; break;
            case "BA": newCode= "BIH"; break;
            case "BW": newCode= "BWA"; break;
            case "BV": newCode= "BVT"; break;
            case "BR": newCode= "BRA"; break;
            case "IO": newCode= "IOT"; break;
            case "BN": newCode= "BRN"; break;
            case "BG": newCode= "BGR"; break;
            case "BF": newCode= "BFA"; break;
            case "BI": newCode= "BDI"; break;
            case "KH": newCode= "KHM"; break;
            case "CM": newCode= "CMR"; break;
            case "CA": newCode= "CAN"; break;
            case "CV": newCode= "CPV"; break;
            case "KY": newCode= "CYM"; break;
            case "CF": newCode= "CAF"; break;
            case "TD": newCode= "TCD"; break;
            case "CL": newCode= "CHL"; break;
            case "CN": newCode= "CHN"; break;
            case "CX": newCode= "CXR"; break;
            case "CC": newCode= "CCK"; break;
            case "CO": newCode= "COL"; break;
            case "KM": newCode= "COM"; break;
            case "CG": newCode= "COG"; break;
            case "CD": newCode= "COD"; break;
            case "CK": newCode= "COK"; break;
            case "CR": newCode= "CRI"; break;
            case "CI": newCode= "CIV"; break;
            case "HR": newCode= "HRV"; break;
            case "CU": newCode= "CUB"; break;
            case "CY": newCode= "CYP"; break;
            case "CZ": newCode= "CZE"; break;
            case "DK": newCode= "DNK"; break;
            case "DJ": newCode= "DJI"; break;
            case "DM": newCode= "DMA"; break;
            case "DO": newCode= "DOM"; break;
            case "EC": newCode= "ECU"; break;
            case "EG": newCode= "EGY"; break;
            case "SV": newCode= "SLV"; break;
            case "GQ": newCode= "GNQ"; break;
            case "ER": newCode= "ERI"; break;
            case "EE": newCode= "EST"; break;
            case "ET": newCode= "ETH"; break;
            case "FK": newCode= "FLK"; break;
            case "FO": newCode= "FRO"; break;
            case "FJ": newCode= "FJI"; break;
            case "FI": newCode= "FIN"; break;
            case "FR": newCode= "FRA"; break;
            case "GF": newCode= "GUF"; break;
            case "PF": newCode= "PYF"; break;
            case "TF": newCode= "ATF"; break;
            case "GA": newCode= "GAB"; break;
            case "GM": newCode= "GMB"; break;
            case "GE": newCode= "GEO"; break;
            case "DE": newCode= "DEU"; break;
            case "GH": newCode= "GHA"; break;
            case "GI": newCode= "GIB"; break;
            case "GR": newCode= "GRC"; break;
            case "GL": newCode= "GRL"; break;
            case "GD": newCode= "GRD"; break;
            case "GP": newCode= "GLP"; break;
            case "GU": newCode= "GUM"; break;
            case "GT": newCode= "GTM"; break;
            case "GG": newCode= "GGY"; break;
            case "GN": newCode= "GIN"; break;
            case "GW": newCode= "GNB"; break;
            case "GY": newCode= "GUY"; break;
            case "HT": newCode= "HTI"; break;
            case "HM": newCode= "HMD"; break;
            case "VA": newCode= "VAT"; break;
            case "HN": newCode= "HND"; break;
            case "HK": newCode= "HKG"; break;
            case "HU": newCode= "HUN"; break;
            case "IS": newCode= "ISL"; break;
            case "IN": newCode= "IND"; break;
            case "ID": newCode= "IDN"; break;
            case "IR": newCode= "IRN"; break;
            case "IQ": newCode= "IRQ"; break;
            case "IE": newCode= "IRL"; break;
            case "IM": newCode= "IMN"; break;
            case "IL": newCode= "ISR"; break;
            case "IT": newCode= "ITA"; break;
            case "JM": newCode= "JAM"; break;
            case "JP": newCode= "JPN"; break;
            case "JE": newCode= "JEY"; break;
            case "JO": newCode= "JOR"; break;
            case "KZ": newCode= "KAZ"; break;
            case "KE": newCode= "KEN"; break;
            case "KI": newCode= "KIR"; break;
            case "KP": newCode= "PRK"; break;
            case "KR": newCode= "KOR"; break;
            case "KW": newCode= "KWT"; break;
            case "KG": newCode= "KGZ"; break;
            case "LA": newCode= "LAO"; break;
            case "LV": newCode= "LVA"; break;
            case "LB": newCode= "LBN"; break;
            case "LS": newCode= "LSO"; break;
            case "LR": newCode= "LBR"; break;
            case "LY": newCode= "LBY"; break;
            case "LI": newCode= "LIE"; break;
            case "LT": newCode= "LTU"; break;
            case "LU": newCode= "LUX"; break;
            case "MO": newCode= "MAC"; break;
            case "MK": newCode= "MKD"; break;
            case "MG": newCode= "MDG"; break;
            case "MW": newCode= "MWI"; break;
            case "MY": newCode= "MYS"; break;
            case "MV": newCode= "MDV"; break;
            case "ML": newCode= "MLI"; break;
            case "MT": newCode= "MLT"; break;
            case "MH": newCode= "MHL"; break;
            case "MQ": newCode= "MTQ"; break;
            case "MR": newCode= "MRT"; break;
            case "MU": newCode= "MUS"; break;
            case "YT": newCode= "MYT"; break;
            case "MX": newCode= "MEX"; break;
            case "FM": newCode= "FSM"; break;
            case "MD": newCode= "MDA"; break;
            case "MC": newCode= "MCO"; break;
            case "MN": newCode= "MNG"; break;
            case "ME": newCode= "MNE"; break;
            case "MS": newCode= "MSR"; break;
            case "MA": newCode= "MAR"; break;
            case "MZ": newCode= "MOZ"; break;
            case "MM": newCode= "MMR"; break;
            case "NA": newCode= "NAM"; break;
            case "NR": newCode= "NRU"; break;
            case "NP": newCode= "NPL"; break;
            case "NL": newCode= "NLD"; break;
            case "AN": newCode= "ANT"; break;
            case "NC": newCode= "NCL"; break;
            case "NZ": newCode= "NZL"; break;
            case "NI": newCode= "NIC"; break;
            case "NE": newCode= "NER"; break;
            case "NG": newCode= "NGA"; break;
            case "NU": newCode= "NIU"; break;
            case "NF": newCode= "NFK"; break;
            case "MP": newCode= "MNP"; break;
            case "NO": newCode= "NOR"; break;
            case "OM": newCode= "OMN"; break;
            case "PK": newCode= "PAK"; break;
            case "PW": newCode= "PLW"; break;
            case "PS": newCode= "PSE"; break;
            case "PA": newCode= "PAN"; break;
            case "PG": newCode= "PNG"; break;
            case "PY": newCode= "PRY"; break;
            case "PE": newCode= "PER"; break;
            case "PH": newCode= "PHL"; break;
            case "PN": newCode= "PCN"; break;
            case "PL": newCode= "POL"; break;
            case "PT": newCode= "PRT"; break;
            case "PR": newCode= "PRI"; break;
            case "QA": newCode= "QAT"; break;
            case "RE": newCode= "REU"; break;
            case "RO": newCode= "ROU"; break;
            case "RU": newCode= "RUS"; break;
            case "RW": newCode= "RWA"; break;
            case "SH": newCode= "SHN"; break;
            case "KN": newCode= "KNA"; break;
            case "LC": newCode= "LCA"; break;
            case "PM": newCode= "SPM"; break;
            case "VC": newCode= "VCT"; break;
            case "WS": newCode= "WSM"; break;
            case "SM": newCode= "SMR"; break;
            case "ST": newCode= "STP"; break;
            case "SA": newCode= "SAU"; break;
            case "SN": newCode= "SEN"; break;
            case "RS": newCode= "SRB"; break;
            case "SC": newCode= "SYC"; break;
            case "SL": newCode= "SLE"; break;
            case "SG": newCode= "SGP"; break;
            case "SK": newCode= "SVK"; break;
            case "SI": newCode= "SVN"; break;
            case "SB": newCode= "SLB"; break;
            case "SO": newCode= "SOM"; break;
            case "ZA": newCode= "ZAF"; break;
            case "GS": newCode= "SGS"; break;
            case "ES": newCode= "ESP"; break;
            case "LK": newCode= "LKA"; break;
            case "SD": newCode= "SDN"; break;
            case "SR": newCode= "SUR"; break;
            case "SJ": newCode= "SJM"; break;
            case "SZ": newCode= "SWZ"; break;
            case "SE": newCode= "SWE"; break;
            case "CH": newCode= "CHE"; break;
            case "SY": newCode= "SYR"; break;
            case "TW": newCode= "TWN"; break;
            case "TJ": newCode= "TJK"; break;
            case "TZ": newCode= "TZA"; break;
            case "TH": newCode= "THA"; break;
            case "TL": newCode= "TLS"; break;
            case "TG": newCode= "TGO"; break;
            case "TK": newCode= "TKL"; break;
            case "TO": newCode= "TON"; break;
            case "TT": newCode= "TTO"; break;
            case "TN": newCode= "TUN"; break;
            case "TR": newCode= "TUR"; break;
            case "TM": newCode= "TKM"; break;
            case "TC": newCode= "TCA"; break;
            case "TV": newCode= "TUV"; break;
            case "UG": newCode= "UGA"; break;
            case "UA": newCode= "UKR"; break;
            case "AE": newCode= "ARE"; break;
            case "GB": newCode= "GBR"; break;
            case "US": newCode= "USA"; break;
            case "UM": newCode= "UMI"; break;
            case "UY": newCode= "URY"; break;
            case "UZ": newCode= "UZB"; break;
            case "VU": newCode= "VUT"; break;
            case "VE": newCode= "VEN"; break;
            case "VN": newCode= "VNM"; break;
            case "VG": newCode= "VGB"; break;
            case "VI": newCode= "VIR"; break;
            case "WF": newCode= "WLF"; break;
            case "EH": newCode= "ESH"; break;
            case "YE": newCode= "YEM"; break;
            case "ZM": newCode= "ZMB"; break;
            case "ZW": newCode= "ZWE"; break;
            default:   newCode= "000"; break;
        }
        return newCode;
    }
}
